#ifndef __IPENDPOINT_H_
#define __IPENDPOINT_H_
#include "KLib.h"
#include "winsock2.h"   //Need to cross platformify this
SK
/**
Very Hackish atm, limited time
*/
class IPEndpoint
{
private:
    sockaddr_in ep;
public:
    IPEndpoint ();
    IPEndpoint (const IPEndpoint& other);
    virtual ~IPEndpoint();

    String toString (void);
    bool resolve (const String& host, u16 port);
    bool setBroadcast (u16 port);

    sockaddr_in getEP(void);
};

EK

#endif